<%--
  User: Dong Zou Date: 3/4/2016 Time: 7:17 PM
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<nav class="navbar navbar-fixed-top navbar-inverse">
    <div class="navbar-header">
        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
                aria-expanded="false">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
        </button>
        <a href="#" class="navbar-brand">YBP</a>
    </div>

    <div id="navbar" class="collapse navbar-collapse">
        <ul class="nav navbar-nav navbar-right" style="margin-right: 15px">
            <c:if test="${loginuser.email == null}">
            <li><a href="${host}/login">Login</a></li>
            </c:if>
            <c:if test="${loginuser.email != null}">
            <li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="#">Welcome, ${loginuser.email}</a>
            </c:if>
    </div>
    <!-- /.nav-collapse -->
</nav>